import request from "@/utils/request";

export function recommend(data) {
  return request({
    url: '/search/recommend',
    method: 'post',
    data
  })
}

export function searchEs(data) {
  return request({
    url: '/search/searchEs',
    method: 'post',
    data
  })
}

export function searchGoods(data) {
  return request({
    url: '/search/searchGoods',
    method: 'post',
    data
  })
}


export function updateUserShopScore(data) {
  return request({
    url: '/userShopScore/update',
    method: 'post',
    data
  })
}


export function getUserShopScore(shopId) {
  return request({
    url: '/userShopScore/get/'+shopId,
    method: 'get'
  })
}


export function updateUserGoodsScore(data) {
  return request({
    url: '/userGoodsScore/update',
    method: 'post',
    data
  })
}


export function getUserGoodsScore(shopId) {
  return request({
    url: '/userGoodsScore/get/'+shopId,
    method: 'get'
  })
}
